@import "~taro-ui/dist/style/index.scss";
@import "~taro-ui/dist/style/components/image-picker.scss";
@import "~taro-ui/dist/style/components/icon.scss";
#app {
  background-color: #f8f8f8;
}

.page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100vh;
  background-color: #f8f8f8;
}

view {
  box-sizing: border-box;
}


/**
 * 表单样式
 */

.panel__content {
  .list-items {
    margin-bottom: 20px;
    &:last-child {
      margin-bottom: 0;
    }
    &__input {
      text-align: right;
      margin-right: 12px;
      margin-left: 24px;
      .at-input__title {
        width: 240px;
      }
    }
    &__placeholder {
      text-align: right;
    }
    &__picker {
      margin-left: 8px;
    }
    &__text {
      padding-right: 0px;
    }
    &__desc {
      margin-bottom: 12px;
      color: #333;
      font-size: 24px;
    }
    &__value {
      color: #333;
      font-size: 32px;
      line-height: 1.5;
    }
  }
}

.at-list {
  &__item {
    position: relative;
    box-sizing: border-box;
    color: $at-list-text-color;
    font-size: $font-size-lg;
    .item-content {
      &__info {
        &-title {
          // 支持文本换行
          white-space: pre-line;
        }
        &-note {
          color: $at-list-content-color;
          font-size: $font-size-base;
          line-height: $line-height-zh;
        }
      }
    }
    .item-extra {
      position: relative;
      &__info,
      &__icon,
      &__image,
      &__switch {
        display: inline-block;
      }
      &__info {
        @include line(1);
        max-width: 100%;
        color: $at-list-extra-color;
        padding-right: 30px;
        font-size: $font-size-lg;
        vertical-align: middle;
        box-sizing: border-box;
      }
      // &__icon {
      //   margin-right: -12px;
      //   &-arrow {
      //     color: $at-list-arrow-color;
      //     font-size: 48px;
      //   }
      // }
      &__icon {
        right: -12px;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
        &-arrow {
          color: $at-list-arrow-color;
          font-size: 48px;
        }
        // margin-left: $spacing-h-sm;
        // margin-right: -$spacing-h-sm;
      }
      &__switch {
        vertical-align: middle;
      }
      &__image {
        @include squareImg($at-list-thumb-size);
        vertical-align: middle;
        margin-right: 30px;
        &-info {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
  &__item-content {
    @include flex(1);
    overflow: hidden;
    margin-right: 40px;
  }
  &__item-extra {
    // @include flex(0, 0, $at-list-extra-width);
    max-width: $at-list-extra-width;
    text-align: right;
  }
  /* modifiers */
  &--no-border {
    &::after,
    &::before {
      content: initial;
      border: none;
    }
  }
}

.doc-body {
  min-height: calc(100vh - 180px);
  background: #fff;
  box-shadow: 0 26px 163px 0 rgba(0, 0, 0, 0.11);
  padding-bottom: 60px;
  padding-bottom: calc(constant(safe-area-inset-bottom) + 60px);
  padding-bottom: calc(env(safe-area-inset-bottom) + 60px);
  .panel {
    margin: 32px 0 56px;
    &__title {
      position: relative;
      margin-bottom: 25px;
      padding-left: 50px;
      color: #6a6a77;
      font-size: 32px;
      font-weight: bold;
      line-height: 1.5;
      &::before {
        content: "";
        display: inline-block;
        position: absolute;
        left: 24px;
        top: 50%;
        margin-top: -20px;
        width: 2PX;
        height: 40px;
        background-color: #6190e8;
        box-shadow: 0 7px 12px 0 rgba(97, 144, 232, 0.2);
        border-radius: 1PX;
      }
    }
    &__content {
      padding: 0 20px;
      &.no-padding {
        padding: 0;
      }
    }
  }
}